<div id='add-member'>
<?php
    echo form_open('committee/add_member_submit');
    echo "<h3>Add a new committee member</h3>";
    
    echo "Committee ";
    $option=array();
    $query=$this->committee_model->view_committee();
    foreach( $query->result() as $committee)
    {
        $option[$committee->committee_name]=$committee->committee_name;
    }
    echo form_dropdown('committee_name',$option);
    
    echo "Faculty ";
    $option=array();
    $query=$this->committee_model->view_faculty();
    foreach( $query->result() as $faculty)
    {
        $option[$faculty->uniqueid]=$faculty->faculty_name;
    }
    echo form_dropdown('faculty',$option);
    
    echo form_radio('is_chair', '0',TRUE);
    echo 'member';
    
    echo form_radio('is_chair', '1',FALSE);
    echo 'chair';
    echo form_submit('submit','Add');
?>
</div>